package com.example.demo.controller;

import com.example.demo.entity.Source;
import com.example.demo.mapper.GaugeMapper;
import com.example.demo.mapper.TreemapMapper;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.TreeMap;

@RestController
@RequestMapping("/getTreeMap")
@CrossOrigin
public class TreemapController {

    @Resource
    TreemapMapper treemapMapper;

    @GetMapping("/getDashujuTreeMap")
    public List<Source> getDashujuTreeMap() {
        List<Source> sourceList = treemapMapper.getDashujuTreeMap();
        return sourceList;
    }

    @GetMapping("/classJisuanjiyingyongTreeMap")
    public List<Source> classJisuanjiyingyongTreeMap() {
        List<Source> sourceList = treemapMapper.classJisuanjiyingyongTreeMap();
        return sourceList;
    }

    @GetMapping("/classRuanjiangongchengTreeMap")
    public List<Source> classRuanjiangongchengTreeMap() {
        List<Source> sourceList = treemapMapper.classRuanjiangongchengTreeMap();
        return sourceList;
    }

    @GetMapping("/classRuanjianjishuTreeMap")
    public List<Source> classRuanjianjishuTreeMap() {
        List<Source> sourceList = treemapMapper.classRuanjianjishuTreeMap();
        return sourceList;
    }

    @GetMapping("/classWangluogongchengTreeMap")
    public List<Source> classWangluogongchengTreeMap() {
        List<Source> sourceList = treemapMapper.classWangluogongchengTreeMap();
        return sourceList;
    }

    @GetMapping("/classWangluojishuTreeMap")
    public List<Source> classWangluojishuTreeMap() {
        List<Source> sourceList = treemapMapper.classWangluojishuTreeMap();
        return sourceList;
    }

    @GetMapping("/classWulianwangTreeMap")
    public List<Source> classWulianwangTreeMap() {
        List<Source> sourceList = treemapMapper.classWulianwangTreeMap();
        return sourceList;
    }

    @GetMapping("/classXinxiguanliTreeMap")
    public List<Source> classXinxiguanliTreeMap() {
        List<Source> sourceList = treemapMapper.classXinxiguanliTreeMap();
        return sourceList;
    }


}
